<template>
 <div class="div">
   <span @click="goto1"><img class="img1" src="https://i.52112.com/icon/jpg/256/20201125/100138/4084286.jpg" ></span>
   <div>
     <span class="span1" @click="goto" >登录/注册</span>
     <span class="span1" @click="goto" >{{names}}</span>
   </div>
   <div class="span2">
     <span>
       <img src="../Profile/imges/shezhi.png" width="15px"height="15px">
     </span>
     <span class="span3">
       <img src="../Profile/imges/lingdang.png" width="15px"height="15px">
     </span>
   </div>
 </div>
</template>

<script>
export default {
  name: "Sign",
  data(){
    return{
      names:this.$route.params.name
    }
  },
  methods:{
    goto(){
      this.$router.push('/denglu')
    },
    goto1(){
      this.$router.push('/myself')
    }
  }
}
</script>

<style scoped>
  .img1{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #000000;
  }
  .div{
    display: flex;
    position: relative;
    align-items: center;
  }
  .span1{
    font-size: 20px;
    margin-left: 20px;
    font-family: 方正姚体;
  }
  .span2{
    position: absolute;
    right: 0;
  }
  .span3{
    padding-left: 10px;
  }
</style>
